<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="../common/jspcommon.jsp" %>

<script type="text/javascript">
	
	$(function(){
		$(".topicListB").click(function(){
			$("#topic_list").load("topicList.htm?page="+$(this).attr("page"));
		});
	});
	
</script>

<c:forEach items="${lastTopicList.list}" var="lastTopic">
<div class="ztNoteBg">
  	  <h3 class="fontColor666 font18px"><a target="_blank" href="picTopicDetail.htm?tid=${lastTopic.identifier}"><c:out value="${lastTopic.name}" /></a></h3>
	<c:if test="${not empty lastTopic.description}">
	  <p class="ztNoteCon_y fontColor999">${lastTopic.description}</p>
	</c:if>
    
    <p class="ztNoteNo_y">
        <span class="ztHBLove_y redColor"><i class="fontColor999">${lastTopic.picAmount}</i>画报</span>
        <span class="ztHBLove_y redColor"><i class="fontColor999">${lastTopic.viewAmount}</i>围观</span>
    </p>
    <ul class="ztNotePicShow_y clearfix">
    	<c:forEach items="${lastTopic.picUrlList}" var="picUrl">
    		<li><a target="_blank" href="picTopicDetail.htm?tid=${lastTopic.identifier}"><img width="58" src="${picUrl}_100x100.jpg" /></a></li>
    	</c:forEach>
    </ul>
</div>
</c:forEach>
<div class="hlsFY">
	<span>${lastTopicList.currentPage}</span>/<span>${lastTopicList.totalPage}</span>
	<a href="javascript:;" 
	
	<c:choose>
		<c:when test="${lastTopicList.currentPage > 1}">page='${lastTopicList.currentPage - 1}'</c:when>
		<c:otherwise>page='1'</c:otherwise>
	</c:choose>
	 class="prevLink topicListB">&lt;</a><a href="javascript:;" class="nextA topicListB"
	 <c:choose>
		<c:when test="${lastTopicList.currentPage < lastTopicList.totalPage}">page='${lastTopicList.currentPage + 1}'</c:when>
		<c:otherwise>page='${lastTopicList.totalPage}'</c:otherwise>
	</c:choose>
	 >&gt;</a>
</div>